{% spaceless %}    
    {% ifequal page_index 1 %}
    <span>首页</span>
    {% else %}
    <a href="{% url blog_home owner.slug %}" class="first">首页</a>
    {% endifequal %}
    </span>    
    {% if has_prev %}
		{% ifequal 1 page_prev %}
        <a href="{% url blog_home owner.slug %}" class="prev">上一页</a>
        {% else %}
		<a href="{% url blog_list owner.slug,page_prev %}" class="prev">上一页</a>
		{% endifequal %}
		
    {% else %}
    <span>上一页</span>
    {% endif %}    
	{% for p in page_nums %}
	{% ifequal p page_index %}
	<span class="current">{{ p }}</span>
	{% else %}
		{% ifequal p 1 %}			
    	<a href="{% url blog_home owner.slug %}">{{ p }}</a>
		{% else %}
		<a href="{% url blog_list owner.slug,p %}">{{ p }}</a>
		{% endifequal %}			
	{% endifequal %}
	{% endfor %}
    {% if has_next %}
    <a href="{% url blog_list owner.slug,page_next %}" class="next">下一页</a>
    {% else %}
     <span>下一页</span>
    {% endif %}
    {% ifequal page_index page_count %}
        尾页
    {% else %}
    <a href="{% url blog_list owner.slug,page_count %}" class="last">尾页</a>
    {% endifequal %}
    <span class="tip">共 {{ row_count }} 篇文章</span>
{% endspaceless %}